import java.util.*;

public class Word{
	String word;
	ArrayList<String> POS;
	String infinitive; // this stores the infinitive of a verb form. Not used if not a verb.
	
	public Word(String w){
		this.word = w;
		this.POS = new ArrayList<String>();
	}
	
	public Word(String w, String pos){
		this.word = w;
		this.POS = new ArrayList<String>();
		this.POS.add(pos);
	}
	
	public void setInfinitive(String inf){
		infinitive = inf;
	}
	
	public String getInfinitive(){
		return infinitive;
	}
	
	public boolean hasInfinitive(){
		return (infinitive != null);
	}

	public void addPos(String pos){
		this.POS.add(pos);
	}
	
	public String getWord(){
		return word;
	}
    
    public ArrayList<String> getPOS(){
        return POS;
    }

    public boolean hasPOS(){
        return (POS.size() != 0);
    }
	
	public String toString(){
		String out = word+" - POS : "+POS.get(0);
		for (int i=1; i<POS.size(); i++){
			out = out+", "+POS.get(i);
		}
		return out;
	}
}
